<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学员信息列表</title>
<style>
	*{padding:0px;margin: 0px auto;}
	h3{text-align: center;}
	p{text-align: right;}
	#main table{width:600px;border: 1px black solid;}
	#main thead{font-weight: bold;background-color:gray;text-align: center;}
	#main tr:nth-child(even){background-color:yellow;}
	tbody tr:nth-child(odd){background-color: #f5f5f5;}
</style>
</head>
<body>
	<div id="container">
		<div id="title">
			<h3>学员信息列表</h3>
		</div>
		<p><a href="add">添加学员</a></p>
		<div id="main">
			<table>
				<thead>
					<tr>
						<td>编号</td>
						<td>姓名</td>
						<td>性别</td>
						<td>年龄</td>
						<td>电话</td>
						<td>email</td>
						<td>班级</td>
					</tr> 
				</thead>
				<tbody>
					<c:forEach items="${studentList }" var="s">
						<tr>
						<td>${s.id }</td>
						<td>${s.name }</td>
						<td>${s.gender }</td>
						<td>${s.age }</td>
						<td>${s.telephone }</td>
						<td>${s.email }</td>
						<td>${s.classId.name }</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</body>
</html>